import BTDecoratorNode from "../BTDecoratorNode";
import { BTResult, FAILURE, RUNNING } from "../BTEnum";

export default class BTFailure extends BTDecoratorNode {
    decorator(result: BTResult) {
        return result !== RUNNING ? FAILURE : result;
    }
}
